#include <iostream>

using namespace std;

struct student
{
    int a, b, num;
};

int check(student *a);

int main()
{
    int t;
    cin >> t;
    student *stu = new student[t];
    for (int i = 0; i < t; i++)
    {
        cin >> stu[i].num >> stu[i].a >> stu[i].b;
        if (check(stu + i))
        {
            cout << "Excellent" << endl;
        }
        else
        {
            cout << "Not excellent" << endl;
        }
    }

    return 0;
}

int check(student *a)
{
    if (a->a + a->b <= 140)
    {
        return 0;
    }
    if (a->a * 0.7 + a->b * 0.3 < 80)
    {
        return 0;
    }
    return 1;
}